print "Starting..."

from individual import Individual
from slave_tasks.dev import DevTask
from slave_tasks.eval import EvalAreaTask, EvalVolTask
from slave_tasks.feedback import FeedbackTask
import settings

#========

pop1 = []
for i in range(settings.POP_SIZE):
    pop1.append(Individual())
print "pop 1 size = " + str(len(pop1))

devTask = DevTask()
pop1 = devTask.__execute__(None, pop1)
print "done development!"

evalAreaTask = EvalAreaTask()
pop1 = evalAreaTask.__execute__(None, pop1)
print "done eval area!"

evalVolTask = EvalVolTask()
pop1 = evalVolTask.__execute__(None, pop1)
print "done eval vol!"

#print "==="
#for i in pop1:
#    print i

feedbackTask = FeedbackTask()
pop1 = feedbackTask.__execute__(None, pop1)
print "done feedback!"

devTask = DevTask()
pop1 = devTask.__execute__(None, pop1)
print "done development again!"

#print "==="
#for i in pop1:
#    print i

print "The End"